import axios from "@/request/request";
import qs from 'qs'

// 获取精品推荐的数据
export const JingpinAPI = () => axios.get("/products/recommend")

//获取热门推荐数据
export const HotApi = () => axios.get("/products/hot")

// 发送短信验证码
export const SendSMSAPI = params => axios.post('/sendSMS', qs.stringify(params))

//发送登录请求
export const PhoneLoginAPI = params => axios.post('/phoneRegin', qs.stringify(params))

// 微信扫码登录api
export const WeixinLoginApi = params => axios.post('/wechatUsers/PCLogin', qs.stringify(params))

//手机绑定微信请求
export const BindPhoneAPI = params => axios.post('/wechatUsers/binding', qs.stringify(params))

//获取登录用户信息
export const UserProfilesAPI = () => axios.get("/shop/userProfiles")

//请求详情页
export const GoodDetailsAPI = (params) => axios.get(`/products/${params}`)